<extend name="Public/base" />
<block name="body" >
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>

    <form action="{:U('Product/applypurchase')}" method="POST" class="form-horizontal">
        <div class="form-item">
            <label for="product-name" class="item-label">商品名称</label>
            <div class="controls">
                <input id="product-name" type="text" name="proName" class="text input-large " value="{$product.name}"  readonly/>
            </div>
        </div>
        <div class="form-item">
            <label for="jin" class="item-label">单件规格(选填)</label>
            <div class="row">
                <input id="jin" type="text" name="jin" class="text input-small " value=""/><span>斤</span>
                <input id="head" type="text" name="head" class="text input-small " value=""/><span>头</span>
            </div>
        </div>
        <div class="form-item">
            <label for="product-pinyin" class="item-label">申请数量</label>
            <div class="controls">
                <input id="product-pinyin" type="text" name="num" class="text input-large"  required/>
            </div>
        </div>
        <div class="form-item">
            <label for="mark" class="item-label">备注</label>
            <div class="controls">
               <textarea name="mark" class="textarea input-4x" id="mark">
               </textarea>
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="pid" value="{$product.id}"/>
            <button type="submit" class="btn submit-btn "  >确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>
<block name="script">
    <script type="text/javascript" charset="utf-8">
        //导航高亮
        highlight_subnav('{:U('Product/index')}');
    </script>
</block>